<?php

use yii\helpers\Html;
use common\models\articles\Articles;
    $tongzhi = Articles::find()->where(['category_id'=>18])->asArray()->limit(10)->all();
    $hangye = Articles::find()->where(['category_id'=>28])->asArray()->limit(10)->all();
    $xinwen = Articles::find()->where(['category_id'=>14])->asArray()->limit(10)->all();

/* @var $this yii\web\View */
/* @var $model common\models\meeting\Meetingenroll */
$controllerID = Yii::$app->controller->id;
$actionID = Yii::$app->controller->action->id;

$this->title = Yii::t('app', '填写信息11');
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', '填写信息'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
 <?= Html::cssFile('@web/css/enroll.css')?>
                            
 <script>
        var custom_elements_wap = <?= $custom_elements_wap ?>;
    </script>
<div class="design_form">
    <div class="form_Pontent">
        <section class="buju">
            <header class="header" style="margin:20px 0;"><?= $setinfo['ac_name'] ?></header>
                <label style="color: red">
                        <?php
                        if(\Yii::$app->getSession()->getFlash("success")) {
                            echo \Yii::$app->getSession()->getFlash("success");
                        }
                        ?>
                 </label>
                <form id="custom_f"  action="<?= yii\helpers\Url::to(['meetingenroll/addcustom']);?>" method='post' >
                    <input name="_csrf" type="hidden" id="_csrf" value="<?= Yii::$app->request->csrfToken ?>">
                    <input type="hidden" name="ac_id" value="<?= $id ?>" />
                    <div class="mainFrom">
                    <ul class="formUl">
                    </ul>
                    </div>
                </form>
        </section>
       <div class="page_footer" style="position: relative;">
                <div id="divBtnNewxStep">
                    <!-- <input type="button" class="input-btn up-btn" value="上一页" onclick="goBack()"> -->
                    <input type="button" id="btnNextStep" class="input-btn" value="下一步" onclick="nextStep()">
                </div>
                <footer class="foot-white">Powered by www.zhongkefu.com</footer>
        </div>
    </div>
</div>
<script>
        $(function(){
            $("#btnNextStep").click(function(){
            //console.log(checkForm());
                if(checkForm()){
                    $(".loader").find('p').text('表单提交中');
                    $(".loader").show();
                    $("#custom_f").submit();
                }
            })
        })
    </script>
